package com.hyou.sc.feign.auth.service;

import java.io.Serializable;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.hyou.sc.feign.auth.dto.form.UserForm;
import com.hyou.sc.feign.auth.service.hystrix.UserHystrixServiceImpl;
import com.hyou.springboot.base.ResponseMessage;

@FeignClient(value = "${hyou.feign-client.name.sc-eureka-client-auth}", fallback = UserHystrixServiceImpl.class)
public interface UserService {
    
    @PostMapping(path = "/user/add")
    ResponseMessage<Serializable> add(@RequestBody UserForm form);
    
}
